package org.bspv.pharma.manager.impl;

import java.util.List;

import org.bspv.pharma.dao.DrugstoreDAO;
import org.bspv.pharma.manager.DrugstoreManager;
import org.bspv.pharma.model.Drugstore;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 
 * @author guillaume
 * 
 */
@Service(value = "drugstoreManager")
public class DrugstoreManagerImpl extends
		AbstractManagerImpl<Drugstore, String> implements DrugstoreManager {

    /**
     * Constructeur par défaut.
     * @param dao DAO
     */
    @Autowired
	public DrugstoreManagerImpl(DrugstoreDAO dao) {
		super(dao);
	}

	/**
	 * {@inheritDoc}
	 */
    @Override
    public List<Drugstore> findAllValidDrugstores() {
        String[] empty = {};
        String[] nullProperties = { "obsolete" };
        return dao.findBy(empty, empty, nullProperties, empty);
    }

}
